//用来覆盖webpack配置
const { override, fixBabelImports, addLessLoader, addBabelPlugins  } = require('customize-cra');
module.exports = override(
    addLessLoader({
        javascriptEnabled:true,
    }),
    ...addBabelPlugins( // 支持装饰器
        [
            '@babel/plugin-proposal-decorators',
            { legacy: true},
        ]
    ),
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        style: true
    }),
);


